package com.qhs.sys.service.impl;

import com.qhs.sys.mapper.DictInfoMapper;

import com.qhs.sys.entity.DictInfo;
import com.qhs.sys.service.DictInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/11/10 0010.
 */
@Service
public class DictInfoServiceImpl implements DictInfoService {
    @Autowired
    private DictInfoMapper dictInfoMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return dictInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(DictInfo record) {
        return dictInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(DictInfo record) {
        return dictInfoMapper.insertSelective(record);
    }

    @Override
    public DictInfo selectByPrimaryKey(Long id) {
        return dictInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DictInfo record) {
        return dictInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DictInfo record) {
        return dictInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<DictInfo> findDictInfoList(DictInfo dictInfo) {
        return dictInfoMapper.findDictInfoList(dictInfo);
    }

}
